import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './styles/global.css'
import '@/utils/element'
import axios from '@/utils/requst'
import moment from 'moment'
// 引入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'

// 富文本编辑器的样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(VueQuillEditor)
Vue.filter('fromSetTime', (val, str = 'YYYY-MM-DD hh:mm:ss') => {
  return moment(val).format(str)
})
Vue.prototype.axios = axios

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
